package Map;

import java.util.HashMap;

public class HashMapDemo {
    public static void main(String[] args){
        HashMap<String, String> map = new HashMap<>();
        map.put("1","1");
        map.put("2","1");
        map.put("3","1");
        map.put("4","1");
        map.put("5","1");
        System.out.println(map);
        System.out.println(map.containsKey("1"));
        map.remove("1");
        System.out.println(map);
        map.replace("2","袁建鹏");
        System.out.println(map);
    }
}
